<?php

use App\Model\User;
use Illuminate\Database\Seeder;

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        User::unguard();
        $user = new User();
        $user->name = 'admin';
        $user->email = 'admin@admin.com';
        $user->phone = '18888888888';
        $user->is_admin = 1;
        $user->password = strtoupper(md5('admin'));
        $user->save();
    }
}
